<template>
  <ChatComponent
    ref="chatComponent"
    title="AI 心理咨询师"
    placeholder="向心理咨询师倾诉您的想法..."
    theme="psychologist"
    :api-url="apiUrl"
    welcome-message="您好，我是您的心理咨询师，您可以向我倾诉任何烦恼或困惑，我会尽力为您提供支持和帮助。"
    @messageSent="onMessageSent"
  />
</template>

<script setup>
import { ref } from 'vue'
import ChatComponent from '../components/ChatComponent.vue'

const chatComponent = ref(null)
const apiUrl = 'http://localhost:8080/api/ai/chat/sse'

const onMessageSent = (message) => {
  console.log('消息已发送:', message)
}
</script>

<style scoped>
/* 页面特定样式可以在这里添加 */
</style>